/*
 * Copyright (C) 2022 Realtek Semiconductor Corp.
 * All Rights Reserved.
 *
 * This program is the proprietary software of Realtek Semiconductor
 * Corporation and/or its licensors, and only be used, duplicated,
 * modified or distributed under the authorized license from Realtek.
 *
 * ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER
 * THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
 *
 * Purpose : Definition of ME attribute: Extended IP HOST Config Data (65417)
 *
 * Feature : The file includes the following modules and sub-modules
 *           (1) ME attribute: Extended IP HOST Config Data (65417)
 */

#ifndef __MIB_EXTENDED_IP_HOST_CFG_DATA_65417_H__
#define __MIB_EXTENDED_IP_HOST_CFG_DATA_65417_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Table extended_ip_host_cfg_data attribute len, only string attrubutes have length definition */
#define MIB_TABLE_ME65417_STRING_PART_LEN (25)

#define MIB_TABLE_ME65417_ATTR_NUM (9)
#define MIB_TABLE_ME65417_ENTITY_ID_INDEX ((MIB_ATTR_INDEX)1)
#define MIB_TABLE_ME65417_ATTR2_INDEX ((MIB_ATTR_INDEX)2)
#define MIB_TABLE_ME65417_USER_INDEX ((MIB_ATTR_INDEX)3)
#define MIB_TABLE_ME65417_ATTR4_INDEX ((MIB_ATTR_INDEX)4)
#define MIB_TABLE_ME65417_ATTR5_INDEX ((MIB_ATTR_INDEX)5)
#define MIB_TABLE_ME65417_PASSWD_INDEX ((MIB_ATTR_INDEX)6)
#define MIB_TABLE_ME65417_ATTR7_INDEX ((MIB_ATTR_INDEX)7)
#define MIB_TABLE_ME65417_ATTR8_INDEX ((MIB_ATTR_INDEX)8)
#define MIB_TABLE_ME65417_ATTR9_INDEX ((MIB_ATTR_INDEX)9)


#define ME65417_IS_PPPOE_EN(_attr2)		(_attr2 & 0x0100)		

typedef struct {
	UINT16	EntityId;
	UINT16	Attr2;
	CHAR	User[MIB_TABLE_ME65417_STRING_PART_LEN+1]; //attr3
	UINT16	Attr4;
	UINT16	Attr5;
	CHAR	Password[MIB_TABLE_ME65417_STRING_PART_LEN+1];
	UINT16	Attr7;
	UINT8	Attr8[MIB_TABLE_ME65417_STRING_PART_LEN+1];
	UINT8	Attr9;
} __attribute__((packed)) MIB_TABLE_ME65417_T;

#ifdef __cplusplus
}
#endif

#endif